--日程提醒

return function (group,qq,msg)
    local key = ""
    local h = ""
    local m = ""
    local c = ""
    if msg:find("分钟") then
        
        key = msg:split("提醒我")
        m = key[1]:match("(%d+)")
        if m == nil then
            return "时间不对噢"
        end
        local s = m*60
        m = os.date("%M",os.time()+s)
        h = os.date("%H",os.time()+s)

        if m:find("00")==1 then
            m = "0"
        elseif m:find("0")==1 then
            m = m:gsub("0","")
        end
        c = key[2]:trim()

    elseif msg:find("小时") then
        
        key = msg:split("提醒我")
        m = key[1]:match("(%d+)")
        if m == nil then
            return "时间不对噢"
        end
        local s = m*60*60
        m = os.date("%M",os.time()+s)
        h = os.date("%H",os.time()+s)
        
        if m:find("00")==1 then
            m = "0"
        elseif m:find("0")==1 then
            m = m:gsub("0","")
        end
        c = key[2]:trim()

    elseif msg:find("会") or msg:find("等") then
            key = msg:split("提醒我")
            m = 10
            if m == nil then
                return "时间不对噢"
            end
            local s = m*60
            m = os.date("%M",os.time()+s)
            h = os.date("%H",os.time()+s)
            
            if m:find("00")==1 then
                m = "0"
            elseif m:find("0")==1 then
                m = m:gsub("0","")
            end
            c = key[2]:trim()

    else
        -- 固定格式提醒
        local keys = msg:split("提醒我")
        key = keys[1]:split(":")
        h = key[1]:match("(%d+)")
        m = key[2]:match("(%d+)")
        if h == nil or m == nil or keys[2] == nil or tonumber(h) > 24 or tonumber(m) > 60 then
            return "时间不对噢"
        end
        if m:find("00")==1 then
            m = "0"
        elseif m:find("0")==1 then
            m = m:gsub("0","")
        end
        c = keys[2]:trim()

    end
    local d = "cqSendGroupMessage("..group..",cqCode_At("..qq..")..\""..c.."\")".."\n"..
    "apiXmlDelete(\"timer\",\"usertimertask\",\""..h..":"..m.."\")"
    apiXmlSet("timer","usertimertask",h..":"..m,d)
    --os.date("%H:%M",os.time()+600)
    apiUpdateTimerTask()
    return "好的,本喵将会在"..h.."时"..m.."分提醒您"
end
